package com.design.mediator;

/**
 * @ClassName Mediator.java
 * @Description 抽象中介者
 * @author Jon
 * @date 2018年6月15日 下午5:05:25
 */
public abstract class Mediator {
	protected ConcreteColleague1 c1;
	protected ConcreteColleague2 c2;
	
	public ConcreteColleague1 getC1() {
		return c1;
	}
	public void setC1(ConcreteColleague1 c1) {
		this.c1 = c1;
	}
	public ConcreteColleague2 getC2() {
		return c2;
	}
	public void setC2(ConcreteColleague2 c2) {
		this.c2 = c2;
	}
	
	//中介者的业务逻辑
	public abstract void doSomething1();
	public abstract void doSomething2();
}
